﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TheSimGer
{
    [Serializable()]
    public class TheMail : Prefab
    {
        /// <summary>
        /// 邮件发送者
        /// </summary>
        public string Sender = "";

        /// <summary>
        /// 邮件正文
        /// </summary>
        public string Data = "";

        /// <summary>
        /// 邮件超时时间
        /// </summary>
        public int TTLTick = 0;

        /// <summary>
        /// 打开邮件时播放的音乐文件 从中随机选择一个
        /// </summary>
        public List<string> WavFilePath = new List<string>();

        /// <summary>
        /// 最终选择的邮件WAV播放文件
        /// </summary>
        public string SelectMailWavFile = "";

        public string ButtonStr = "";

        /// <summary>
        /// 邮件打开事件
        /// </summary>
        public Func<TheMail,bool> _OnOpen { get; set; } = null;
    }
}
